Roc Toolkit internal modules
Roc Toolkit: real-time audio streaming
Loading...
Searching...
No Matches
io_uri_to_str.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2019 Roc authors
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8
9//! @file roc_address/io_uri_to_str.h
10//! @brief Format IoURI to string.
11
12#ifndef ROC_ADDRESS_IO_URI_TO_STR_H_
13#define ROC_ADDRESS_IO_URI_TO_STR_H_
14
15#include "roc_address/io_uri.h"
17
18namespace roc {
19namespace address {
20
21//! Convert IoURI to string.
23public:
24 //! Construct.
25 explicit io_uri_to_str(const IoURI&);
26
27 //! Get formatted string.
28 const char* c_str() const {
29 return buf_;
30 }
31
32private:
33 char buf_[IoURI::MaxLength];
34};
35
36} // namespace address
37} // namespace roc
38
39#endif // ROC_ADDRESS_IO_URI_TO_STR_H_
Convert IoURI to string.
Definition: io_uri_to_str.h:22
const char * c_str() const
Get formatted string.
Definition: io_uri_to_str.h:28
io_uri_to_str(const IoURI &)
Construct.
Base class for non-copyable objects.
Definition: noncopyable.h:23
Audio file or device URI.
Root namespace.
Non-copyable object.
Audio file or device URI.
Definition: io_uri.h:21